#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>


int main() {
    int n = 0;
    int max = 0;
    scanf("%d", &n);
    max = n;
    int i = 0;
    for (i = 0; i < 4; i++)
    {
        scanf("%d", &n);
        if (n > max)
        {
            max = n;
        }
    }
    printf("%d\n", max);
    return 0;
}